package com.nervenets.shopping.controller.user.params;

import com.nervenets.general.web.params.IdParams;
import com.nervenets.shopping.enumeration.WealthType;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@EqualsAndHashCode(callSuper = true)
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class UserRechargeParams extends IdParams {
    @ApiModelProperty(value = "资产类型", required = true)
    @NotNull
    private WealthType wealthType;
    @ApiModelProperty(value = "变动值，增为正，减为负", required = true)
    private long offset;
    @ApiModelProperty(value = "说明", required = true)
    @NotBlank
    @Size(max = 10)
    private String detail;
}
